package com.zpark.it.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Title: Carousel 轮播图
 * @Author Charles
 * @Package com.zpark.it.pojo
 * @Date 2023/7/21 10:50
 */
@Data
@TableName("carousel")
public class Carousel implements Serializable {

    public static final Long serialVersionUID=1L;

    @JsonProperty("carousel_id")  //把实体类的字段返回成为json对应的字段key
    @TableId(value = "carousel_id",type = IdType.AUTO)
    private Integer carouselId;

    @TableField("img_path")
    private String imgPath;

    private String describes;

    @JsonProperty("product_id")
    @TableField("product_id")
    private Integer productId;

    private Integer priority;

}
